package com.aliyun.heiyu.powermaster.server.dao;

import com.aliyun.heiyu.powermaster.server.dao.entity.StrategyActionHistoryEntity;

import java.sql.Timestamp;
import java.util.List;

public interface StrategyActionHistoryDao {

    boolean insert(StrategyActionHistoryEntity entity);

    int count(String deviceId);

    List<StrategyActionHistoryEntity> getByCondition(String deviceId);

    List<StrategyActionHistoryEntity> getByCondition(String deviceId, int start, int size);

    List<StrategyActionHistoryEntity> findOnePage(String deviceId,Integer pageSize, Integer pageNum);

    List<String> getActionStatus(String deviceId, Timestamp time);
}
